package me.dz.dreamcleaner.runnable;

import me.dz.dreamcleaner.listener.ChatEvent;

import java.util.TimerTask;

import static me.dz.dreamcleaner.DreamCleaner.*;

public class ChatTask extends TimerTask {

    private int i = 0;

    @Override
    public void run() {
        if (cacheEnable){
            i++;
            if (i == cacheReset){
                ChatEvent.clear();
                i = 0;
            }
        }
    }
}
